﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace MedicWeb {
    public partial class Modal : System.Web.UI.MasterPage {
        protected void Page_Load(object sender, EventArgs e) {
            string error = Session["error"] as string;
            string success = Session["success"] as string;
            string info = Session["info"] as string;

            Panel1.Visible = error != null || success != null || info != null;

        }

        protected void Page_UnLoad(object sender, EventArgs e) {
            string error = Session["error"] as string;
            string success = Session["success"] as string;
            string info = Session["info"] as string;

            Panel1.Visible = error != null || success != null || info != null;
        }


    }
}